import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemMemberComponent} from './mem-member.component';

const routes: Routes = [
    {path: '', component: MemMemberComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mem-member/add-mem-member.module#AddMemMemberModule'},
            {path: 'list', loadChildren: './list-mem-member/list-mem-member.module#ListMemMemberModule'},
            {path: 'modify', loadChildren: './modify-mem-member/modify-mem-member.module#ModifyMemMemberModule'},
            {path: 'report', loadChildren: './report-mem-member/report-mem-member.module#ReportMemMemberModule'},
            {path: 'mem-member', loadChildren: './report-mem-member/report-mem-member.module#ReportMemMemberModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemMemberRoutingModule {
}
